// 文件位置: src/main/java/com/pharmacy/SaleManage/service/SaleRecordService.java
package com.pharmacy.SaleManage.service;

import com.pharmacy.SaleManage.entity.SaleRecord;

import java.util.Date;
import java.util.List;

public interface SaleRecordService {
    List<SaleRecord> getAllSaleRecords();
    SaleRecord getSaleRecordById(Integer id);
    List<SaleRecord> getSaleRecordsByDateRange(Date startDate, Date endDate);
    List<SaleRecord> getSaleRecordsByMedicineId(Integer medicineId);
    List<SaleRecord> getSaleRecordsByOperatorId(Integer operatorId);
    boolean addSaleRecord(SaleRecord saleRecord);
    Double getTotalSalesByDateRange(Date startDate, Date endDate);
}